package edu.isistan.matching.structures.elements.types;

import java.util.List;

import edu.isistan.matching.structures.elements.TypeElement;

public class PrimitiveType extends TypeElement {

	public PrimitiveType(String nombre) {
		super(nombre);

	}

	public PrimitiveType() {
		super(null);

	}

	@Override
	public List<TypeElement> getSubTiposList() {
		return null;
	}

	@Override
	public boolean isPrimitivo() {
		return true;
	}
	public String toString() {
		return "[#Type Primitivo: " + getName() + ", nameSpace: " + getNameSpace() + " }]";
	}
	public Object clone() {
		PrimitiveType clone = new PrimitiveType(getName());
		clone.setAnyType(isAnyType());
		clone.setNameSpace(getNameSpace());
		clone.setNillable(isNillable());
		clone.setParentElement(getParentElement());
		clone.setPrimitivo(isPrimitivo());
		clone.setSecuencia(isSecuencia());
		clone.setTargetNameSpace(getTargetNameSpace());
		clone.setType(getType());
		clone.setLista(isLista());
	
		return clone;
	}
}
